package Err

// ============================================================================

const (
	OK     = 0 // 没问题
	Failed = 1 // 通用错误码(最好不弹窗)

	// --------------------------------
	// 通用 [2, 100)
	// --------------------------------

	// --------------------------------
	// 登录 [100, 200)
	// --------------------------------

	Login_Failed         = 100
	Login_CreateUserInfo = 101
	Login_NameDup        = 102 // name duplication

	// --------------------------------
	// 聊天 [200, 300)
	// --------------------------------

	Chat_TextTooLong   = 200
	Chat_RoomNotFound  = 201
	Chat_AlreadyInRoom = 202
	Chat_RoomExists    = 203
	Chat_NotInTheRoom  = 204
)
